//
//  ThemMacro.h
//  TuiYou
//
//  Created by baisen on 15/9/14.
//  Copyright (c) 2015年 besonit. All rights reserved.
//

#ifndef ThemMacro_h
#define ThemMacro_h

#define MODEL_PROPERTY_KEY(objc, property) ((void)objc.property, @(#property))

// 获取用户token
#define kUSER_TOKEN  [[NSUserDefaults standardUserDefaults] objectForKey:@"OE_USER_TOKEN_KEY"]
#define kUSER_ID     [[NSUserDefaults standardUserDefaults] objectForKey:@"OE_USER_ID_KEY"]

#pragma mark- 获取用户token关键字
static NSString * const kUSER_TOKEN_KEY = @"OE_USER_TOKEN_KEY";
static NSString * const kUSER_ID_KEY    = @"OE_USER_ID_KEY";

#pragma mark- 保存登录信息的关键字
static NSString * const kUSER_USERACCOUNT_KEY = @"OE_USER_USERACCOUNT_KEY";
static NSString * const kUSER_PASSWORD_KEY    = @"OE_USER_PASSWORD_KEY";

#pragma mark- 页数和大小
static NSString * const kPAGE_SIZE  = @"10";
static NSString * const kPAGE_TOTAL = @"total";

#pragma mark- 获取数据第一层数据的关键字：obj
static NSString * const kRESPONSE_OBJ_DATA = @"result";

#pragma mark- 本地存储记忆播放
static NSString * const ONLINEEDUCATE_MEMORY_PLIST        =  @"OE_EDUCATION_VIDEO_MEMORYPLAY.plist";
static NSString * const ONLINEEDUCATE_MEMORY_CURRENTTIME  =  @"ONLINEEDUCATE_MEMORY_CURRENTTIME_KEY";
static NSString * const ONLINEEDUCATE_MEMORY_TOTALTIME    =  @"ONLINEEDUCATE_MEMORY_TOTALTIME_KEY";

#pragma mark- 系统时间与网络时间的时间差
static NSString * const kCURRENT_INTNET_TIMEINTEVAL  =  @"OE_CURRENT_INTNET_TIMEINTEVAL";

#pragma mark- 系统弹框修改字体颜色关键字
static NSString * const kALERT_TITLECOLOR_KEY        =  @"_titleTextColor";

#pragma mark- 系统版本
static NSString * const LAST_RUN_VERSION_KEY         =  @"LAST_RUN_VERSION_OF_APPLICATION";

#pragma mark- 应对苹果审核
static NSString * const APPLE_Production = @"apple.production";
static NSString * const WXID = @"WX.ID";
static NSString * const APPLE_auditsign = @"apple.auditing";

#define DEAL_APPLE_AUDITING [[[NSUserDefaults standardUserDefaults] objectForKey:APPLE_Production] isEqualToString:APPLE_auditsign]

/**************************  项目中用到的自定义cell的Identifier ***************************/
static NSString * const TableViewHeaderIdentifier   = @"TableViewHeaderIdentifier";
static NSString * const TableViewCellIdentifier     = @"TableViewCellIdentifier";

/*** 注册CollectionCell ***/
static NSString * const CellFirstIdentifier         = @"CollectionOrTableCellOneIdentifier";
static NSString * const CellSecondIdentifier        = @"CollectionOrTableCellSecondIdentifier";
static NSString * const CellThirdIdentifier         = @"CollectionOrTableCellThirdIdentifier";
static NSString * const CollectionHeaderReuseViewIdentifier = @"CollectionHeaderViewIdentifier";
static NSString * const CollectionFooterReuseViewIdentifier = @"CollectionFooterViewIdentifier";

/**************************  充值说明 ***************************/
static NSString * const kRechargeExplain = @"1.余额麦点仅限iOS系统使用,且不能在其他平台使用。\n2.充值成功后可以在\"我的->我的钱包\"中查看余额,麦点没有使用期限,但无法提现、退款或转赠他人。\n3.余额麦点仅用于购买七麦课堂的课程或者教育大使。\n4.如遇无法充值、充值失败等问题,可关注\"七麦课堂\"联系我们解决。";

/**************************  登录Storyboard名称  ***************************/
static NSString * const kLoginStoryboardName = @"OELoginPageStoryboard";

/*******************  UserDefaults 存储热门搜索关键词数组 key  ***************************/
static NSString * const kHotSearchItems =  @"HotSearchItems";
#endif
